package cn.cqie.attendance.student.domian;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value="addleaveLog", description="")
@Alias("addleaveLog")
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AddLeaveLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 学生id */
    @ApiModelProperty(value = "学生id")
    private Long stuId;

    /** 0 审批不通过 1 提交申请 2 审批通过 */
    @ApiModelProperty(value = "0 审批不通过 1 提交申请 2 审批通过")
    private int leaveStatus;

    /** 教师id */
    @ApiModelProperty(value = "教师id")
    private Integer teacherId;

    /** 审批时间 */
    @ApiModelProperty(value = "审批时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date transitTime;

    /** 学生id */
    @ApiModelProperty(value = "学生id")
    private Integer leaveId;
}
